package MtG.publicClass.messages;

import MtG.publicClass.Message;
import MtG.publicClass.Player;

/**
 * Disconnected.java is a message class that is used when a player disconnects from the server.
 * @author Marek Sirp
 * @author Jaan Sepp
 */
public class Disconnected extends Message{
	/**
	 * Determines if a de-serialized file is compatible with this class.
	 */
	private static final long serialVersionUID = 9086070241170837601L;

	/**
	 * Constructor
	 * @param player player that disconnected.
	 */
	public Disconnected(Player player){
		setMessage(player.getName() + " disconnected from server");
	}

}
